package com.yl.pattern.behavioralmodel.responsibility;

/**
 * @Author 小羊
 * @Date 31/10/2024下午 5:03
 * @ClassName
 * @Description 经理类（具体的处理者）
 */
public class Manager extends Handler{
    public Manager() {
        super(Handler.NUM_ONE, Handler.NUM_THREE);
    }

    @Override
    protected void handlerLevel(LeaveRequest leave) {
        System.out.println(leave.getName()+"请假"+leave.getNum()+"天"+leave.getContent());
        System.out.println("部门经理审批：同意");
    }
}
